export default function({$axios, redirect}) {

    $axios.onRequest((config) => {
        console.log('请求拦截器开始： ' + config.url)
        config.headers['token'] = "aaa=bbb"
        console.log(config);
        
    })

    $axios.onResponse((response) => {
        console.log('响应拦截器：' + response)
        return response.data
    })

    $axios.onError((error) => {
        console.log(error)
    })
}

